package com.examples.AppoointmentManager;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class AppointmentActivity extends Activity {
    /** Called when the activity is first created. */
    private Button button01; 
    private Button button02;
    private Button button03;
    
	@Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        button01=(Button)findViewById(R.id.button1);             //add button intent
        button01.setOnClickListener(new View.OnClickListener(){
        	@Override
            public void onClick(View v) {
        		Intent myIntent = new Intent(v.getContext(), agenda.class);
                startActivityForResult(myIntent, 0);}});
        
        
      /* button02=(Button)findViewById(R.id.button2);             //update button intent
        button02.setOnClickListener(new View.OnClickListener(){
        	@Override
            public void onClick(View v) {
        		Intent myIntent = new Intent(v.getContext(), Update.class);
                startActivityForResult(myIntent, 0);}});*/
        
        button03=(Button)findViewById(R.id.display);             //update button intent
        button03.setOnClickListener(new View.OnClickListener(){
        	@Override
            public void onClick(View v) {
        		Intent myIntent = new Intent(AppointmentActivity.this, Display.class);
                startActivity(myIntent);}});
       
        
    }   //onCreate method
}